<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户登录</title>
</head>
<body>
<div id="header">
    <ul>
        <li><a href="{{ url_for('user.home') }}">返回</a></li>
    </ul>
</div>
<h1>用户登录</h1>
<p style="color: red">{{ msg }}</p>
<form action="{{ url_for('user.login')}}" method="post">
    <p><input type="text" name="username" placeholder="用户名"></p>
    <p><input type="password" name="password" placeholder="密码"></p>
    <p><input type="submit" value="用户登录"></p>
</form>
</body>
</html>